<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<include file="Public/title" />
    <style type="text/css">
        .search{float:right;margin-right:30px;}
    </style>
</head>

<body>
<div class="mainWrap">
    <!--标题-->
    <div class="mainWrapHeader">
    	<h1 class="mainWrapTit">{$seotitle}
            
        </h1>
    </div>
    <!--标题-->
    
    <div class="mainWrapBd">
        
        <form action="{:U('batchDo')}" method="post" name="doForm" onsubmit="return batchConfirm(this);">
        <!--列表-->
        <table cellpadding="0" cellspacing="0" border="0" class="stdtable stdtablelist">
            <colgroup>

                <col />
                <col />
                <col />
                <col />
            </colgroup>
            <thead>
                <tr>
                    <th>配置名称</th>
                    <th>配置值</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
            	<volist name="lists" id="vo">
                <tr>
                    <td>{$vo.detail}</td>
                    <td><input type="text" name="ACTIVITY_START_DATE" id="now_date" class="sys_text" value="{$vo.value}"></td>
                    <td>
                        <a href="javascript:;" id="edit_date">修改</a>
                    </td>
                </tr>
            	</volist>
                
            </tbody>
        </table>
        <!--列表-->
        
        <!--工具-->
        <div class="tableTools clearfix">
            <div class="tableOptions fl">
            </div>
            <div class="fr">
                {$pages['show']}
            </div>
        </div>
        <!--工具-->
        </form>
        
    </div>
    
</div>
</body>
<script type="text/javascript">
    window.onload = function(){
        document.getElementById('search_btn').onclick = function(){
            var key = document.getElementById('key').value;
            location.href = "{:U('Seller/index')}?key=" + key;
        }
    }

    $("#edit_date").click(function(e) {
    	var now_date = $("#now_date").val();
    	$.post('do_seeting',{'now_date':now_date}, function(d){
    		if(d.status == true){
    			alert('修改成功');
    			location.href="seeting";
    			return false;
    		}else{
    			alert(d.msg);
    			return false;
    		}
    	},"json");
    	return false;
    });
</script>
</html>